<?php

namespace app\modules\home\controllers;

use app\components\API;
use app\models\First;
use yii\captcha\CaptchaAction;
use \yii\web\Controller;
use Yii;
use app\components\PlayModel\GPlay;

class IController extends Controller {

    public $layout = 'main_m';
    public $enableCsrfValidation = false;

    public function actions() {
        return [
            'error' => [
                // 'class' => 'yii\web\ErrorAction',
                'class' => '\app\components\ErrorAction',
            ],
            'captcha' => [
                'class' => 'yii\captcha\CaptchaAction',
                ///  'fixedVerifyCode' => YII_ENV_TEST ? 'testme' : null,
                'maxLength' => 3,
                'minLength' => 3
            ],
        ];
    }


    public function actionIndex() {
        return $this->render('index');
    }



    public function actionT(){
        return $this->render('t');
    }







    public $title = '测试系统';
    public $description = '测试系统';

}
